package com.itheima.chapter08.set.TreeSet;

import java.util.TreeSet;

//成绩排序
//总分>语文成绩>数学成绩>英语成绩>名字
public class Case2 {
    public static void main(String[] args) {
        TreeSet<Studentcase2> ts =new TreeSet<>();
        Studentcase2 s1 =new Studentcase2("zhangsan",23,89,79,91);
        Studentcase2 s2 =new Studentcase2("lisi",15,90,98,88);
        Studentcase2 s3 =new Studentcase2("wangwu",18,89,79,91);
        Studentcase2 s4 =new Studentcase2("zhanliu",19,91,89,79);
        ts.add(s1);
        ts.add(s2);
        ts.add(s3);
        ts.add(s4);
        System.out.println(ts);
    }
}
